package com.itheima.reggie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.mapper.EmployeeMapper;
import com.itheima.reggie.service.EmployeeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 员工信息 服务实现类
 * </p>
 *
 * @author 黑马程序员
 * @since 2022-06-06
 */
@Service
@Slf4j
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

//    @Override
//    public Employee getById(Serializable id) {
//        LambdaQueryWrapper<Employee> qw =new LambdaQueryWrapper<>();
//        qw.eq(Employee::getUsername,"admin");
//        employeeMapper.selectList(qw);
//
//        Employee employee = employeeMapper.selectById(id);
//        return employee;
//    }
}
